package com.xuda.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ：程序员徐大大
 * @description：TODO
 * @date ：2022-03-20 19:15
 */
@Controller
@RequestMapping(value = "index")
public class IndexController {
    @RequestMapping(value = "/test")
    public String test(Model model) {
        model.addAttribute("data","this is thymeleaf to take database");

        return "test";
    }
}
